<?php
class ManageAction extends Action {

	public function _initialize() {

    }
	public function index() {
		$this->assign('_header_tab_on_manage',1);
		$this->display();

    }
	public function edit() {
		$this->assign('_header_tab_on_manage',1);
		$this->display();

    }
	public function dosave() {
		$_POST['brand_name_zh'] = t($_POST['brand_name_zh']);
 		$_POST['brand_name_en'] = t($_POST['brand_name_en']);
		if(empty($_POST['brand_name_zh']) && empty($_POST['brand_name_en'])) {
            $this->error( "品牌的中文名称或英文名称必须要有一个！" );
        }




        $Dao = D( 'BrandsInfo' );
		if( $add ) {
			$this->assign('jumpUrl', U('brands/Mangae/index',array('id'=>$add,'mid'=>$this->mid)));
			$this->success('发表成功');
		}else {
			$this->error( "添加失败" );
		}



	}


}
